home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / src / GLperf3.12-src.lha / GLperf / RastrPos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-01  |  4.8 KB  |  163 lines

  1. /*
  2.  * (c) Copyright 1995, Silicon Graphics, Inc.
  3.  * ALL RIGHTS RESERVED
  4.  * Permission to use, copy, modify, and distribute this software for
  5.  * any purpose and without fee is hereby granted, provided that the above
  6.  * copyright notice appear in all copies and that both the copyright notice
  7.  * and this permission notice appear in supporting documentation, and that
  8.  * the name of Silicon Graphics, Inc. not be used in advertising
  9.  * or publicity pertaining to distribution of the software without specific,
  10.  * written prior permission.
  11.  *
  12.  * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
  13.  * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
  14.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
  15.  * FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
  16.  * GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
  17.  * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
  18.  * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
  19.  * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
  20.  * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
  21.  * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
  22.  * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
  23.  * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
  24.  *
  25.  * US Government Users Restricted Rights
  26.  * Use, duplication, or disclosure by the Government is subject to
  27.  * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
  28.  * (c)(1)(ii) of the Rights in Technical Data and Computer Software
  29.  * clause at DFARS 252.227-7013 and/or in similar or successor
  30.  * clauses in the FAR or the DOD or NASA FAR Supplement.
  31.  * Unpublished-- rights reserved under the copyright laws of the
  32.  * United States.  Contractor/manufacturer is Silicon Graphics,
  33.  * Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
  34.  *
  35.  * Author: John Spitzer, SGI Applied Engineering
  36.  *
  37.  */
  38.  
  39. #if (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_STRUCT)
  40. #include "Primitve.h"
  41.     int rasterPosDim;   /* Dimension of vertex data (i.e. 2 or 3 D) [2, 3]   */
  42.     float clipAmount;
  43.     int clipMode;
  44.     int drawOrder;
  45.     /* Variables below this line are not user settable */
  46.     int numDrawn;
  47.     GLint *subImageData;
  48.     void **imageData;
  49.     /* Member functions */
  50.     /* void Execute(TestPtr);   */                /* virtual function */
  51.     /* int SetState(TestPtr);  */                 /* virtual function */
  52.     /* void (*SetExecuteFunc)(TestPtr); */        /* virtual function */
  53. #elif (defined(INC_REASON)) && (INC_REASON == INFO_ITEM_ARRAY)
  54. #include "Primitve.h"
  55.     {
  56.         RasterPosDim,
  57.         "Dimension of RasterPos Data",
  58.         offset(rasterPosDim),
  59.         RangedInteger,
  60.         {
  61. #ifdef FULL_RASTERPOS_PATHS
  62.             { 2 },
  63. #else
  64.         { 3 },
  65. #endif
  66.             { 3 },
  67.         },
  68.         { 3 }
  69.     },
  70.     {
  71.         ColorData,
  72.         "Color/Index Data",
  73.         offset(colorData),
  74.         Enumerated,
  75.         {
  76.             { None,                     "None" },
  77.             { PerRasterPos,             "PerRasterPos" },
  78.             { End }
  79.         },
  80.         { None }
  81.     },
  82.     {
  83.         TexData,
  84.         "Texture Coordinate Data",
  85.         offset(textureData),
  86.         Enumerated,
  87.         {
  88.             { None,                     "None" },
  89.             { PerRasterPos,             "PerRasterPos" },
  90.             { End }
  91.         },
  92.         { None }
  93.     },
  94.     {
  95.         ClipAmount,
  96.         "Amount of Image/Bitmap/Text that is Clipped",
  97.         offset(clipAmount),
  98.         RangedFloat,
  99.         {
  100.        { 0.0 },
  101.        { 1.0 }
  102.         },
  103.         { NotUsed, 0.5 }
  104.     },
  105.     {
  106.         ClipMode,
  107.         "Manner in which Image/Bitmap/Text is Clipped",
  108.         offset(clipMode),
  109.         Enumerated,
  110.         {
  111.             { Horizontal,        "Horizontal" },
  112.             { Vertical,            "Vertical" },
  113.             { Random,            "Random" },
  114.             { End }
  115.         },
  116.         { Random }
  117.     },
  118.     {
  119.         DrawOrder,
  120.         "Order in which Images/Bitmaps/Text are Drawn",
  121.         offset(drawOrder),
  122.         Enumerated,
  123.         {
  124.             { Serial,            "Serial" },
  125.             { Spaced,            "Spaced" },
  126.             { End }
  127.         },
  128.         { Spaced }
  129.     },
  130.  
  131. #else  /* INC_REASON not defined, treat as plain include */
  132. #ifndef _RastrPos_h
  133. #define _RastrPos_h
  134.  
  135. #include "Primitve.h"
  136. #include "General.h"
  137. #include "Print.h"
  138. #include "TestName.h"
  139. #include "PropName.h"
  140. #include "Global.h"
  141. #include "AttrName.h"
  142. #ifdef WIN32
  143. #include <windows.h>
  144. #endif
  145. #include <GL/gl.h>
  146. #include <GL/glu.h>
  147. #include "Random.h"
  148. #include "FuncEnum.h"
  149.  
  150. typedef struct _RasterPos {
  151. #define INC_REASON INFO_ITEM_STRUCT
  152. #include "RastrPos.h"
  153. #undef INC_REASON
  154. } RasterPos, *RasterPosPtr;
  155.  
  156. void new_RasterPos(RasterPosPtr);
  157. void delete_RasterPos(TestPtr);
  158. void RasterPos__AddTraversalData(RasterPosPtr);
  159. int RasterPos__SetState(TestPtr);
  160.  
  161. #endif /* file not already included */
  162. #endif /* INC_REASON not defined */
  163.